I was flying and high enough to be stopped by a block, but I couldn't place a slime block on the block that was stopping me. I tried stopping flying, but that didn't work either. When I tried to replicate the bug after relogging, I could place the block.
Block lag, maybe?